<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录 - AI智能体开发平台</title>
    <link rel="stylesheet" href="layui/css/layui.css">
    <link rel="stylesheet" href="za.css">
    <style>
        .login-container {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background-color: #F0F2F5;
            padding: 20px;
        }
        .login-box {
            width: 100%;
            max-width: 400px;
            background-color: #FFFFFF;
            border-radius: 8px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
            padding: 30px;
        }
        .login-header {
            text-align: center;
            margin-bottom: 20px;
        }
        .login-logo {
            font-size: 24px;
            font-weight: 600;
            color: #165DFF;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        .login-title {
            font-size: 18px;
            color: #333333;
        }
        .layui-form-item {
            margin-bottom: 20px;
        }
        .layui-form-item .layui-input {
            height: 40px;
        }
    </style>
</head>
<body>
    <div class="login-container">
        <div class="login-box">
            <div class="login-header">
                <div class="login-logo">
                    <i class="layui-icon layui-icon-bot"></i>
                    <span>AI智能体开发平台</span>
                </div>
                <div class="login-title">账号登录</div>
            </div>
            
            <form class="layui-form" action="#" method="post">
                <div class="layui-form-item">
                    <label class="layui-form-label">用户名</label>
                    <div class="layui-input-block">
                        <input type="text" name="username" required lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">
                    </div>
                </div>
                
                <div class="layui-form-item">
                    <label class="layui-form-label">密码</label>
                    <div class="layui-input-block">
                        <input type="password" name="password" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
                    </div>
                </div>
                
                <div class="layui-form-item" style="margin-bottom: 25px;">
                    <div class="layui-input-block">
                        <button class="za-btn za-btn-lg za-btn-primary" style="width: 100%;">
                            <i class="layui-icon layui-icon-login"></i> 登录
                        </button>
                    </div>
                </div>
            </form>
        </div>
    </div>
    
    <script src="layui/layui.js"></script>
    <script>
        layui.use(['form'], function() {
            var form = layui.form;
            
            // 监听表单提交
            form.on('submit(*)', function(data) {
                // 模拟登录验证
                console.log('登录信息:', data.field);
                
                // 这里可以添加实际的登录逻辑
                alert('登录成功，即将跳转到首页');
                window.location.href = 'layout.html';
                
                return false; // 阻止表单默认提交
            });
        });
    </script>
</body>
</html>